﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;

using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using BLL;

public partial class admin_frame_Top : BLL.BasePage_Admin
{
    Sys_Page bll_Sys_Page = new Sys_Page();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            UIInit();
        }
    }

    private void UIInit()
    {
        Bind_Type();
    }

    private void Bind_Type()
    {
        DataTable dt = bll_Sys_Page.GetList("Level = 0 and IsEnable = 1 order by OrderNum").Tables[0];
        dt.Columns.Add("num");
        for (int i = 0; i < dt.Rows.Count; i++)
        {
            dt.Rows[i]["num"] = i + 1;
        }
        Repeater1.DataSource = dt;
        Repeater1.DataBind();
    }
}
